<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DGRv2: helper/dgr-application-helper.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">DGRv2<span id="projectnumber">&#160;2-dev</span>
   </div>
   <div id="projectbrief">A Delay-Guaranteed Routing Protocol model in ns-3</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('da/d85/dgr-application-helper_8h_source.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">dgr-application-helper.h</div></div>
</div><!--header-->
<div class="contents">
<a href="../../da/d85/dgr-application-helper_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/* -*- Mode:C++; c-file-style:&quot;gnu&quot;; indent-tabs-mode:nil; -*- */</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#ifndef DGR_APPLICATION_HELPER_H</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#define DGR_APPLICATION_HELPER_H</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#include &quot;ns3/object-factory.h&quot;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#include &quot;ns3/ipv4-address.h&quot;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#include &quot;ns3/node-container.h&quot;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#include &quot;ns3/application-container.h&quot;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d7/d2e/namespacens3.html">ns3</a> {</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html">   18</a></span><span class="keyword">class </span><a class="code hl_class" href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html">DGRApplicationHelper</a></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>{</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span>  <a class="code hl_class" href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html">DGRApplicationHelper</a> (std::string protocol, Address address);</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>  <a class="code hl_function" href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a59df0621ae2d978da879d7b46d79c184">~DGRApplicationHelper</a>();</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a7c49d8026f27143b11673d3999f4d62c">SetAttribute</a> (std::string name, <span class="keyword">const</span> AttributeValue &amp;value);</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>  ApplicationContainer <a class="code hl_function" href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a27f1ac918f96c2c698210f84a34d4462">Install</a> (NodeContainer c) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>  ApplicationContainer <a class="code hl_function" href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a27f1ac918f96c2c698210f84a34d4462">Install</a> (Ptr&lt;Node&gt; node) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>  ApplicationContainer <a class="code hl_function" href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a27f1ac918f96c2c698210f84a34d4462">Install</a> (std::string nodeName) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>  Ptr&lt;Application&gt; <a class="code hl_function" href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a980128be53078a138a85281640df4725">InstallPriv</a> (Ptr&lt;Node&gt; node) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a73e561acf0002c919bf00f982a079d4b">   80</a></span>  ObjectFactory <a class="code hl_variable" href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a73e561acf0002c919bf00f982a079d4b">m_factory</a>; </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>};</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>} <span class="comment">// namespace ns3</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span><span class="preprocessor">#endif </span><span class="comment">/* DGR_APPLICATION_HELPER_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_application_helper_html"><div class="ttname"><a href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html">ns3::DGRApplicationHelper</a></div><div class="ttdoc">A helper to make it easier to instantiate an ns3::PacketSinkApplication on a set of nodes.</div><div class="ttdef"><b>Definition</b> <a href="../../da/d85/dgr-application-helper_8h_source.html#l00018">dgr-application-helper.h:19</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_application_helper_html_a27f1ac918f96c2c698210f84a34d4462"><div class="ttname"><a href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a27f1ac918f96c2c698210f84a34d4462">ns3::DGRApplicationHelper::Install</a></div><div class="ttdeci">ApplicationContainer Install(NodeContainer c) const</div><div class="ttdoc">Install an ns3::PacketSinkApplication on each node of the input container configured with all the att...</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d65/dgr-application-helper_8cc_source.html#l00060">dgr-application-helper.cc:60</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_application_helper_html_a59df0621ae2d978da879d7b46d79c184"><div class="ttname"><a href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a59df0621ae2d978da879d7b46d79c184">ns3::DGRApplicationHelper::~DGRApplicationHelper</a></div><div class="ttdeci">~DGRApplicationHelper()</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d65/dgr-application-helper_8cc_source.html#l00036">dgr-application-helper.cc:36</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_application_helper_html_a73e561acf0002c919bf00f982a079d4b"><div class="ttname"><a href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a73e561acf0002c919bf00f982a079d4b">ns3::DGRApplicationHelper::m_factory</a></div><div class="ttdeci">ObjectFactory m_factory</div><div class="ttdoc">Object factory.</div><div class="ttdef"><b>Definition</b> <a href="../../da/d85/dgr-application-helper_8h_source.html#l00080">dgr-application-helper.h:80</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_application_helper_html_a7c49d8026f27143b11673d3999f4d62c"><div class="ttname"><a href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a7c49d8026f27143b11673d3999f4d62c">ns3::DGRApplicationHelper::SetAttribute</a></div><div class="ttdeci">void SetAttribute(std::string name, const AttributeValue &amp;value)</div><div class="ttdoc">Helper function used to set the underlying application attributes.</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d65/dgr-application-helper_8cc_source.html#l00041">dgr-application-helper.cc:41</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_application_helper_html_a980128be53078a138a85281640df4725"><div class="ttname"><a href="../../d2/d35/classns3_1_1_d_g_r_application_helper.html#a980128be53078a138a85281640df4725">ns3::DGRApplicationHelper::InstallPriv</a></div><div class="ttdeci">Ptr&lt; Application &gt; InstallPriv(Ptr&lt; Node &gt; node) const</div><div class="ttdoc">Install an ns3::PacketSink on the node configured with all the attributes set with SetAttribute.</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d65/dgr-application-helper_8cc_source.html#l00072">dgr-application-helper.cc:72</a></div></div>
<div class="ttc" id="anamespacens3_html"><div class="ttname"><a href="../../d7/d2e/namespacens3.html">ns3</a></div><div class="ttdef"><b>Definition</b> <a href="../../d5/d65/dgr-application-helper_8cc_source.html#l00027">dgr-application-helper.cc:27</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_d634f21e635b1ea642c8b957ecf78b4f.html">helper</a></li><li class="navelem"><a class="el" href="../../da/d85/dgr-application-helper_8h.html">dgr-application-helper.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7 </li>
  </ul>
</div>
</body>
</html>
